import {createRouter, createWebHashHistory} from 'vue-router'
import Markdown from "@/views/Markdown";
import Explorer from "@/views/Explorer";
import Text from "@/views/Text";
import Image from "@/views/Image";

const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: "/",
            name: "Home",
            redirect: Explorer
        },
        {
            path: "/explorer",
            name: "Explorer",
            component: () => Explorer,
            children: [
                {
                    path: "/markdown",
                    name: "Markdown",
                    component: () => Markdown,
                },
                {
                    path: "/text",
                    name: "Text",
                    component: () => Text,
                },
                {
                    path: "/image",
                    name: "Image",
                    component: () => Image,
                },
            ]
        },
    ]
})
export default router
